# !/usr/bin/env python
# -*- coding: utf-8 -*-

"""
__project__ =  'tricker'
__file__    =  'constants.py'
__author__  =  'king'
__time__    =  '2024/6/15 上午9:52'


                              _ooOoo_
                             o8888888o
                             88" . "88
                             (| -_- |)
                             O\  =  /O
                          ____/`---'\____
                        .'  \\|     |//  `.
                       /  \\|||  :  |||//  \
                      /  _||||| -:- |||||-  \
                      |   | \\\  -  /// |   |
                      | \_|  ''\---/''  |   |
                      \  .-\__  `-`  ___/-. /
                    ___`. .'  /--.--\  `. . __
                 ."" '<  `.___\_<|>_/___.'  >'"".
                | | :  `- \`.;`\ _ /`;.`/ - ` : | |
                \  \ `-.   \_ __\ /__ _/   .-` /  /
           ======`-.____`-.___\_____/___.-`____.-'======
                              `=---='
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                       佛祖保佑        永无BUG
"""

INIT_PACKAGES = ['dnf', 'dnf-plugins-core', 'curl', 'coreutils']
INSTALLED_PACKAGES = [
    'systemd',
    'passwd',
    'findutils',
    'sudo',
    'util-linux-ng',
    'systemd-udev',
    'git',
    'initscripts',
    'openssh-server',
    'selinux-policy',
    'dracut',
    'ca-certificates',
    'rng-tools',
    'e2fsprogs',
    'NetworkManager',
    'dracut-config-generic',
    'wget',
    'dhcp-client',
    'qemu-guest-agent',
    'selinux-policy-targeted',
    'python3-policycoreutils',
    'python3-libselinux',
    'grubby',
    'audit',
    'policycoreutils-python-utils',
    'vim',
    'openssh',
    'tcpdump',
    'cloud-init',
    'passwd',
    'kernel',
    'rsync',
    'lsof',
    'cloud-utils-growpart',
    'traceroute',
    'man-pages',
    'which',
]
REMOVED_PACKAGES = ['linux-firmware', 'linux-firmware-whence']


def config_cloud_init():
    commands = [
        'systemctl enable cloud-config.service',
        'systemctl enable cloud-final.service',
        'systemctl enable cloud-init-local.service',
        'systemctl enable cloud-init.service',
    ]
